package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbCurrentEvent entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_CURRENT_EVENT", schema = "dbo", catalog = "AGDB")
public class TbCurrentEvent implements java.io.Serializable {

	// Fields

	private String EId;
	private TbEvent tbEvent;
	private Integer ceNumber;
	private String EAdmin;
	private String a;
	private String b;
	private String c;
	private String curStepId;

	// Constructors

	/** default constructor */
	public TbCurrentEvent() {
	}

	/** minimal constructor */
	public TbCurrentEvent(String EId, TbEvent tbEvent) {
		this.EId = EId;
		this.tbEvent = tbEvent;
	}

	/** full constructor */
	public TbCurrentEvent(String EId, TbEvent tbEvent, Integer ceNumber,
			String EAdmin, String a, String b, String c, String curStepId) {
		this.EId = EId;
		this.tbEvent = tbEvent;
		this.ceNumber = ceNumber;
		this.EAdmin = EAdmin;
		this.a = a;
		this.b = b;
		this.c = c;
		this.curStepId = curStepId;
	}

	// Property accessors
	@Id
	@Column(name = "E_ID", unique = true, nullable = false, length = 10)
	public String getEId() {
		return this.EId;
	}

	public void setEId(String EId) {
		this.EId = EId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "E_ID", unique = true, nullable = false, insertable = false, updatable = false)
	public TbEvent getTbEvent() {
		return this.tbEvent;
	}

	public void setTbEvent(TbEvent tbEvent) {
		this.tbEvent = tbEvent;
	}

	@Column(name = "CE_NUMBER")
	public Integer getCeNumber() {
		return this.ceNumber;
	}

	public void setCeNumber(Integer ceNumber) {
		this.ceNumber = ceNumber;
	}

	@Column(name = "E_ADMIN", length = 50)
	public String getEAdmin() {
		return this.EAdmin;
	}

	public void setEAdmin(String EAdmin) {
		this.EAdmin = EAdmin;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@Column(name = "CUR_STEP_ID", length = 16)
	public String getCurStepId() {
		return this.curStepId;
	}

	public void setCurStepId(String curStepId) {
		this.curStepId = curStepId;
	}

}